package com.xinqi.modules.exam.analyze.client;

import com.xinqi.common.base.constants.ServiceNameConstants;
import com.xinqi.common.base.response.PageInfo;
import com.xinqi.common.base.response.R;
import com.xinqi.modules.exam.analyze.dto.req.CourseExamPaperAnalyzeQueryDTO;
import com.xinqi.modules.exam.analyze.dto.rsp.CourseExamPaperAnalyzeResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 课程测评分析客户端
 *
 * @author: linkai
 * @date: 2023/07/02
 */
@FeignClient(contextId = "courseExamPaperAnalyzeClient", value = ServiceNameConstants.XQ_EXAM)
public interface CourseExamPaperAnalyzeClient {
    String INNER_PREFIX = "/inner/exam-paper/analyze";

    /**
     * 课程测评分析-分页
     */
    @GetMapping(INNER_PREFIX + "/page")
    R<PageInfo<CourseExamPaperAnalyzeResultDTO>> page(CourseExamPaperAnalyzeQueryDTO dto);

    /**
     * 课程测评分析-详情
     */
    @GetMapping(INNER_PREFIX + "/{id}")
    R<CourseExamPaperAnalyzeResultDTO> findById(@PathVariable("id") Long id);

}
